package com.imooc.product.server.controller;


import com.imooc.product.server.dataobject.TestModel;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: wangjunjie 21:47$ 2018/5/27$
 * @Description:$params$
 * @Version: 1.0.0
 * @Modified By: xxx 21:47$ 2018/5/27$
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/msg")
    String testMsg(@RequestParam("msg")String msg) {
        return msg+"......test";
    }

    @PostMapping("/testData")
    public String testData(@RequestBody TestModel testModel, @RequestParam("money")String money) {
        return testModel.getName()+""+money+"啪啪";
    }


}
